require(['loading'], function(loading) {
	//获取url中的id参数
	var params = getUrlParams();
	var category1 = params.category1?params.category1:"";
	var category2 = params.category2?params.category2:"";
	var category3 = params.category3?params.category3:"";
	var parentId,expressArea = '';
	//应用实例化
	var findClass = new Vue({
		el: '#releaseSuccess',
		data: {
			goodsList: [],
			showLoading: false,
			apiUrl: wxUrl + '/v3.2/large/list',
			item: {
				params:{
					token: token,
					userToken: userToken,
					lng: longitude,
					lat: latitude,
					pageNo : 1,
					pageSize : 6,
					type: 4,
					firstAddressId: '',
					secondAddressId: '',
					category1: category1,
					category2: category2,
					category3: category3
				}
			}
		},
		ready: function() {
			$('.wutuijian').show();
			this.moreFn();
	    },
		methods: {
			moreFn: function() {
				this.$http.get(this.apiUrl, this.item)
					.then(function(response) {
						var result = JSON.parse(response.body);
						if(result.data.list.length > 0){
							$('.wutuijian').hide();
							var goodsData = result.data.list;
							this.goodsList = this.goodsList.concat(goodsData);
						} else {
							$('.wutuijian').show();
						}
					},function(response) {
						
					});
			}
		}
	});
});

// 为可控制返回指定页面所有添加pushState
history.pushState({}, document.title, null);
pushVHistory(self_base_path+"/userCenter/myPurchase/myPurchase.html");
window.addEventListener("popstate", function() {
	goBackVHistory();
});